<?php

use Illuminate\Database\Seeder;
use App\User;
//use App\Models\Admins\Role;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
		
		$admin = new User;
		$admin->name="管理员大神";
		$admin->username="admin";
		$admin->email="111@qq.com";
		$admin->password=bcrypt('123456');
		$admin->is_super=1;
		$admin->save();
//		$admin->attachRole($adminRole);
		
		$user = new User;
		$user->name="普通用户";
		$user->username="user";
		$user->email="test@123.com";
		$user->password=bcrypt('123456');
		$user->save();
//		$user->attachRole($userRole);
		
    }
}
